home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Media 23
/
PC MEDIA CD23.iso
/
share
/
prog
/
pcl4w12
/
expect.c
< prev
next >
Wrap
Text File
|
1995-08-04
|
529b
|
31 lines
/*** expect.c ***/
#include "windows.h"
#include "expect.h"
/* globals */
extern HWND hMainWnd;
extern int OnLineFlag;
int ExpectOnLine()
{if(!OnLineFlag)
{ErrorMessage("Must be ONLINE");
return FALSE;
}
return TRUE;
} /* end ExpectOnline */
int ExpectOffLine()
{if(OnLineFlag)
{ErrorMessage("Must be OFFLINE");
return FALSE;
}
return TRUE;
} /* end ExpectOffline */
void ErrorMessage(char *MsgPtr)
{
MessageBox(hMainWnd,MsgPtr,"ERROR",MB_ICONEXCLAMATION | MB_OK);
}